package com.zzt.video.model.dto;

import com.zzt.video.model.entity.Series;
import lombok.Data;

@Data
public class SeriesDto {
    private Long id;
    private String seriesName;
    private String coverImageUrl;
    private int year;
    private int type;
    private String location;

    public SeriesDto(Series series) {
        this.id = series.getId();
        this.seriesName = series.getSeriesName();
        this.coverImageUrl = series.getCoverImageUrl();
        this.location = series.getLocation();
        this.year = series.getYear();
        this.type = series.getType();
    }
}
